package com.cskaoyan.mapper;

import com.cskaoyan.bean.bo.CommentReplyBO;
import com.cskaoyan.bean.param.BaseParam;
import com.cskaoyan.bean.po.CommentPO;
import com.cskaoyan.bean.vo.CommentVO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author by WANGJun
 * @date 2022/6/6 10:09
 */
public interface CommentMapper {

    List<CommentPO> selectCommentByPage(@Param("baseParam") BaseParam baseParam, @Param("userId") Integer userId, @Param("valueId") Integer valueId);

    int selectCommentCount(@Param("userId") Integer userId, @Param("valueId") Integer valueId);

    int deleteCommentById(int id);

    int addReply(@Param("commentReplyBO") CommentReplyBO commentReplyBO, @Param("time") Date time);
}
